<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>02.v-text和v-html</title>
</head>
<body>
<div id="app">
    插值表达式：
    <span>{{msg}}</span>
    <br>
    v-text:
    <span v-text="msg"></span>
    <br>
    v-html:
    <span v-html="msg">{{msg}}</span>
</div>
<script src="js/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",  //element 用来给Vue实例定义一个作用范围
        data: {      //用来给Vue实例定义一些相关数据
            msg: "<a href='#'>hello word</a>",
        }
    });
</script>
</body>
</html>